package sfeir.authform.client.dao;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class AuthUser implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = -5342531651177672683L;
    
    private Long id;
    private String email;
    private String nickname;
    private String password;
    private String authDomain;
    private Map<String, Object> otherField;
    public AuthUser() {
        super();
        otherField = new HashMap<String, Object>();
    }
    public AuthUser(Long id, String email, String nickname) {
        super();
        this.id = id;
        this.email = email;
        this.nickname = nickname;
        otherField = new HashMap<String, Object>();
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Long getId() {
        return id;
    }
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
    public String getNickname() {
        return nickname;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getAuthDomain() {
        return authDomain;
    }
    public void setAuthDomain(String authDomain) {
        this.authDomain = authDomain;
    } 
    public void setField(String name, Object value) {
        otherField.put(name, value);
    }
    public Object getField(String name) {
        return otherField.get(name);
    }
    public Map<String, Object> getOtherField() {
        return otherField;
    }
    public void setOtherField(Map<String, Object> otherField) {
        this.otherField = otherField;
    }
}
